<?php //pack11class

class ObjectRemoveResponder extends Module {

    public function setup() {
        if(!array_key_exists("id", $_POST)) {
            $this->setBody("id not defined");
            return;
        }
        $doit=MySQLSet::process("Update ".MySQL::TABLE_OBJECTS." set `active`='0' where `id`='".$_POST["id"]."';");
        if($doit) {
            $this->setBody("success");
        } else {
            $this->setBody("error ".MySQLSet::getQuery());
        }
    }

}
?>
